package com.pubinfo.passbook.common.model.ruler;

import com.alibaba.fastjson.JSONObject;
import com.pubinfo.passbook.common.entity.TRabbitmqPerson;
import com.pubinfo.passbook.common.model.bo.rabbitmq.TbAcctOrgRel;
import com.pubinfo.passbook.common.model.bo.rabbitmq.TbCert;
import lombok.Data;
import org.apache.commons.collections.CollectionUtils;

@Data
public class PersonInformation {
  TbPersonnel personnel;
  TbCert tbCert;
  
  public PersonInformation() {
  }
  
  public PersonInformation(TRabbitmqPerson person) {
    this.tbCert = person.getTbCert().get(0);
    this.personnel = JSONObject.toJavaObject(person.getTbPersonnel(), TbPersonnel.class);
  }
}
